package com.ruoyi.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产批次信息对象 ams_asset_project
 * 
 * @author yfkj
 * @date 2021-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetProject extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 资产批次信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    @TableId(type= IdType.AUTO)
    private Long projectId;
    /** 批次名称 */
    @Excel(name = "批次名称")
    @TableField(exist = true)
    @ApiModelProperty(value =  "批次名称")
    private String projectName;
    /** 描述 */
    @Excel(name = "描述")
    @TableField(exist = true)
    @ApiModelProperty(value =  "描述")
    private String projectDescription;
    /** 附件信息 */
    @Excel(name = "附件信息")
    @TableField(exist = true)
    @ApiModelProperty(value =  "附件信息")
    private String attachments;

    public static final String PROJECT_ID="project_id";
    public static final String PROJECT_NAME="project_name";
    public static final String PROJECT_DESCRIPTION="project_description";
    public static final String ATTACHMENTS="attachments";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("projectDescription", getProjectDescription())
            .append("attachments", getAttachments())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
